<template lang="">
    <div>
        <h2  @click="showMsg">学生名称:{{name}}</h2>
        <h2>学生年龄:{{age}}</h2>
    </div>
</template>
<script>
//局部混合
import {fun} from '../mixin.js'
export default {
    name:'Student',
    data(){
        return {
            name:"徐方君",
            age:22
        }
    },
    mixins:[fun]
}
</script>
<style>
    
</style>